<template>
<div>接收上一个页面传递过来的数据{{nodeInfo}}</div>
</template>

<script>
import {onMounted, ref} from "vue";
//取值的时候使用的是userRoute
import {useRoute} from "vue-router"

export default {
  name: "nodeInfo",
  setup() {
    let nodeInfo = ref('')
    onMounted(()=>{
      const route = useRoute()
      nodeInfo.value = route.params.nodeName
    })

    return {
      nodeInfo
    }
  }
}
</script>

<style scoped>

</style>
